
import { get, post ,deletes, put} from './http'
// 获取 产品 list
export const getList = (params) => get(`/products/`,params)

export const getInfo = (id) => get(`/products/`+id)

export const deleteProduct = (id) => deletes(`/products/`+id)

export const addProduct = (params) => post(`/products/`, params)

export const editProduct = (id,params) => put(`/products/`+id,params)

